package com.firebird.app.fekpsl.adapter.sword.community

import android.content.Context
import com.firebird.app.fekpsl.R
import com.firebird.app.fekpsl.bean.OptionType

import kotlinx.android.synthetic.main.sword_community_layout_show_type_item.view.*

class ShowTypeAdapter(context: Context,layout:Int,data:MutableList<OptionType>):CurrencyAdapter<OptionType>(context,layout,data){
    override fun convert(holder: AdapterHolder, item: OptionType, position: Int) {
        holder.setImageView(R.id.iv_type_header,item.header)
        holder.setTextViewText(R.id.tv_type_title,item.name)
        holder.setTextViewText(R.id.tv_type_synopsis,item.synopsis)
    }
}